set(MTS_PLUGIN_PREFIX "shapes")

add_plugin(obj         obj.cpp)
add_plugin(ply         ply.cpp)
add_plugin(blender     blender.cpp)
add_plugin(serialized  serialized.cpp)

add_plugin(cylinder    cylinder.cpp)
add_plugin(disk        disk.cpp)
add_plugin(rectangle   rectangle.cpp)
add_plugin(sphere      sphere.cpp)

add_plugin(shapegroup  shapegroup.cpp)
add_plugin(instance    instance.cpp)

if (MTS_ENABLE_EMBREE)
    target_link_libraries(sphere   PRIVATE embree)
    target_link_libraries(instance PRIVATE embree)
endif()

# Register the test directory
add_tests(${CMAKE_CURRENT_SOURCE_DIR}/tests)
